<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>门店管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/store/storeAreaList">门店区域列表</a></li>
		<shiro:hasPermission name="sys:store:edit"><li><a href="${ctx}/sys/store/areaForm">门店区域添加</a></li></shiro:hasPermission>
	</ul>
	<div style="display:none;">
		<sys:message content="${message}"/>
	</div>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
			    <th>区域名称</th>
				<th>区域描述</th>
				
				<shiro:hasPermission name="sys:store:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="area" varStatus="status">
			<tr>
			   <td>${area.name }</td>
			   <td>${area.remarks }</td>
				<shiro:hasPermission name="sys:store:edit"><td>
    				<a href="${ctx}/sys/store/editAreaForm?id=${area.id}">编辑</a>
					<a href="${ctx}/sys/store/areaDelete?id=${area.id}" onclick="return confirmx('确认要删除该区域吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>